package com.xl.studentpass.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xl.studentpass.entity.TaskInfoEntity;
import com.xl.studentpass.entity.po.OrderOverViewPo;
import com.xl.studentpass.entity.po.TaskOverViewPo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author: xl
 * @createTime: 2023/5/28 15:50:06
 * @program: student-pass
 * @e-mail: 2199396150@qq.com
 * @description:
 */
public interface PublishTaskMapper extends BaseMapper<TaskInfoEntity> {
    List<TaskOverViewPo> getScreenTask(Integer categoryId, Integer pageNo, Integer pageSize, BigDecimal priceStart, BigDecimal priceEnd);

    OrderOverViewPo queryOrderOverViewPo(@Param("userId") Integer userId, @Param("orderId") Integer orderId);

    List<TaskOverViewPo> searchTask(@Param("taskName") String taskName);
}
